<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<h2 id="page-heading">Progetti Attivi</h2>

<br/>
<display:table name="lista" id="el" class="list" pagesize="20" sort="list" requestURI="#" defaultsort="1">
	<display:column title="CodiceRegionale" sortable="true" property="codice_regionale" />
	<display:column title="Acronimo" sortable="true" property="acronimo" />
	<display:column title="Provincia" sortable="true" property="provincia" />
	<display:column title="Descrizione" sortable="true" property="descrizione" />
		<display:column title="DataInizio" sortable="true" property="data_inizio" />
		<display:column title="DataTermine" sortable="true" property="data_termine" />
		<display:column title="Sede" sortable="true" property="sede" />
	
	
	<display:column title="Attivo">
		<c:if test="${el.attivo}">SI</c:if>
		<c:if test="${!el.attivo}">NO</c:if>
	</display:column>
	<display:column title="Azioni">
		<table class="trasparente">
			<tr>
				<td>
					<c:url value="/progetti/listaAttivi.html" var="url">
						<c:param name="idProgetto" value="${el.ID}"/>
						<c:param name="clona" value="true"/>
					</c:url>
					<a href="${url}"><img src="<c:url value="/images/duplica_utente.png"/>" title="Duplica progetto" alt="Duplica progetto" border="0" onmouseover="Tip('Crea un nuovo progetto duplicando un progetto esistente')"/></a>
				</td>
				<td>
					<c:url value="/progetti/progetto.html" var="url">
						<c:param name="idProgetto" value="${el.ID}"/>
					</c:url>
					<a href="${url}"><img src="<c:url value="/images/modifica.png"/>" title="Modifica" alt="Modifica" border="0" onmouseover="Tip('Modifica progetto')"/></a>
				</td>
				<td>
					<c:url value="/utenti/cancellaProgetto.html" var="url">
						<c:param name="idProgetto" value="${el.ID}"/>
					</c:url>
					<a href="#">
						<img height="20" src="<c:url value="/images/cestino.png"/>"  alt="Cancella" title="Cancella" border="0" onclick="query('${url}')" onmouseover="Tip('Cancella il progetto')"/>
					</a>
				</td>
			</tr>
		</table>
	</display:column>
</display:table>

<br />
